package com.zy.dp.mediator.example3;

public class Client
{

	public static void main(String[] args)
	{
		DepUserMediatorImpl mediator = DepUserMediatorImpl.getInstance();
		Dep dep = new Dep();
		dep.setDepId("d1");

		Dep dep2 = new Dep();
		dep2.setDepId("d2");

		User user = new User();
		user.setUserId("u1");

		mediator.showUserDeps(dep);

		dep.deleteDep();

		mediator.showUserDeps(dep);
		mediator.showUserDeps(dep2);

		user.dimission();

		mediator.showUserDeps(dep2);

	}

}
